/*
 * Config.hpp
 *
 *  Created on: 15 mei 2013
 *      Author: maarten
 */

#ifndef CONFIG_HPP_
#define CONFIG_HPP_

#include <vector>
#include <string>

class Config {
public:
	virtual ~Config();
	static Config& getInstance();

	int getPort();
	int getNrOfClients();
	std::vector<std::string> getExtentions();
	std::string getBasePath();
	int getUploadLimit();
	std::string getWriteIPRange();

	void writeToFile();
	void readFromFile();

private:
	Config();
	static Config pConfig;

	int port;
	int nrOfClients;
	std::vector<std::string> exceptExtentions;
	std::string logFile;
	std::string basePath;
	std::string IPRange;
	int uploadLimit;
};

#endif /* CONFIG_HPP_ */
